package top.huhuiyu.springboot.study.service;

import top.huhuiyu.springboot.study.base.BaseDataResult;
import top.huhuiyu.springboot.study.base.BaseResult;
import top.huhuiyu.springboot.study.base.PageBean;
import top.huhuiyu.springboot.study.base.PageResult;
import top.huhuiyu.springboot.study.entity.SoftwareType;

import java.util.List;

/**
 * @author 胡辉煜
 */
public interface SoftwareTypeService {
  BaseResult insert(SoftwareType softwareType);

  BaseDataResult<SoftwareType> queryByKey(Integer id);

  BaseResult update(SoftwareType softwareType);

  BaseResult delete(Integer id);

  BaseDataResult<PageResult<List<SoftwareType>>> query(SoftwareType type, PageBean pageBean);
}
